import service from "@/utils/request.js";

/**
 * @name 查询商户员工列表
 * @param {*} data 
 * @returns 
 */
export const queryPageEnterpriseUserMgmt = (data) => {
  return service({
    url: "/jy-system/enterprise/user/mgmt/queryPageEnterpriseUserMgmt",
    method: "post",
    data,
  });
};


/**
 * @name 查询商户员工审核列表
 * @param {*} data 
 * @returns 
 */
export const queryPageEnterpriseUserMgmtAudit = (data) => {
  return service({
    url: "/jy-system/enterprise/user/mgmt/queryPageEnterpriseUserMgmtAudit",
    method: "post",
    data,
  });
};


/**
 * @name 审核企业员工
 * @param {*} data 
 * @returns 
 */
export const enterpriseUserAuditOpt = (data) => {
  return service({
    url: "/jy-system/enterprise/user/mgmt/enterpriseUserAuditOpt",
    method: "post",
    data,
  });
};


/**
 * @name 获取审核信息
 * @param {*} data 
 * @returns 
 */
export const queryEnterpriseUserAuditData = (userId) => {
  return service({
    url: "/jy-system/enterprise/user/mgmt/queryEnterpriseUserAuditData",
    method: "get",
    params:{
      userId
    },
  });
};

/**
 * @name 门店分页查询
 * @param {*} data 
 * @returns 
 */
export const storeSelectPage = (data) => {
  return service({
    url: "/jy-system/api/store/selectPage",
    method: "post",
    data
  });
};

/**
 * @name 操作系统配置
 * @param {*} data 
 * @returns 
 */
export const configOperation = (data) => {
  return service({
    url: "/jy-system/sys/config/operation",
    method: "post",
    data
  });
};

/**
 * @name 查询系统配置
 * @param {*} data 
 * @returns 
 */
export const querySysConfig = (data = {notifyList:['RETURN_VISIT_RECORD','PROJECT_DEADLINE','PROJECT_WRITE_OFF','MEMBER_BIRTHDAY']}) => {
  return service({
    url: "/jy-system/sys/config/querySysConfig",
    method: "post",
    data
  });
};
/**
 * @name 查询会员回访记录
 * @param {*} data 
 * @returns 
 */
export const queryReturnVisitRecordMgmt = (data)=>{
  return service({
    url: "/jy-member/mgmt/member/return/visit/record/queryReturnVisitRecordMgmt",
    method: "post",
    data
  })
}
